
$(document).keyDown(function(e) {
	switch (e.keyCode) {
		case 37:
			alert("You have pressed Left");
			break;
	}
});